package com.tengju.bff.interfaces.covercharge.constant;


public enum PaymentSystemAbnormalCodeEnum {

    NUMBER_DOES_NOT_EXIST(203291009,"单号不存在"),
    ;

    private Integer code;
    private String desc;

    PaymentSystemAbnormalCodeEnum(Integer code, String desc){
        this.code=code;
        this.desc=desc;
    }
    public Integer getCode(){
        return this.code;
    }
    public String getDesc(){
        return this.desc;
    }

    public static PaymentSystemAbnormalCodeEnum getByCode (Integer code){
        for(PaymentSystemAbnormalCodeEnum accountTypeEnum : (PaymentSystemAbnormalCodeEnum.values())){
            if(accountTypeEnum.getCode().equals(code)){
                return accountTypeEnum;
            }
        }
        return null;
    }
}
